package cn.wildfire.chat.kit.search;

import java.util.List;

import cn.wildfire.chat.kit.search.module.ConversationMessageSearchModule;
import cn.wildfirechat.model.Conversation;

public class SearchMessageActivity extends SearchActivity {
    private Conversation conversation;

    @Override
    protected void beforeViews() {
        super.beforeViews();
        conversation = getIntent().getParcelableExtra("conversation");
        mConversation = conversation;
    }

    @Override
    protected void initSearchModule(List<SearchableModule> modules) {
        modules.add(new ConversationMessageSearchModule(conversation));
    }

    @Override
    protected void afterViews() {
        super.afterViews();
        setSearchType(TYPE_ONLY_SEARCH);
    }

}
